package com.magold.game.factory;

import com.magold.io.XMLReader;
import com.magold.logic.ISpriteLogic;
import com.magold.logic.region.LightingRegion;

public class LightingRegionFactory extends BaseLogicFactory {

	public LightingRegionFactory( ) {
		super(LightingRegion.class.getSimpleName());
	}

	@Override
	protected ISpriteLogic createSafely(XMLReader pReader) {
		float radius = pReader.getFloat("radius");

		return new LightingRegion(radius);
	}

}
